package cn.com.taiji.pos.service.impl;

import cn.com.taiji.pos.entity.SystemAclEmpowerstrike;
import cn.com.taiji.pos.mapper.SystemAclEmpowerstrikeMapper;
import cn.com.taiji.pos.service.ISystemAclEmpowerstrikeService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author
 * @since 2021-03-01
 */
@Service
public class SystemAclEmpowerstrikeServiceImpl extends ServiceImpl<SystemAclEmpowerstrikeMapper, SystemAclEmpowerstrike> implements ISystemAclEmpowerstrikeService {

    @Autowired
    private SystemAclEmpowerstrikeMapper systemAclEmpowerstrikeMapper;

    @Override
    public SystemAclEmpowerstrike findByUser(String user) {
        QueryWrapper<SystemAclEmpowerstrike> systemAclEmpowerstrikeWrapper = new QueryWrapper<>();
        systemAclEmpowerstrikeWrapper.eq("user", user);
        return systemAclEmpowerstrikeMapper.selectOne(systemAclEmpowerstrikeWrapper);
    }
}
